import request from "@/utils/request";

// 获取栏目列表
export const getShopClassList = () => {
	return request.get('/api/v1/admin/shopClass/list')
}

// 删除栏目
export const removeShopClassById = (id) => {
	return request.delete(`/api/v1/admin/shopClass/del/${id}`)
}

// 新增或修改栏目
export const setShopClassInfo = (data) => {
	return request.post('api/v1/admin/shopClass/setShopClass', data)
}


// 获取栏目商品列表
export const getShopinfoList = (params) => {
	return request.get(`/api/v1/admin/shopinfo/list`, { params })
}

// 设置商品信息
export const setShopList = (data) => {
	return request.post(`/api/v1/admin/shopinfo/set`, data)
}

// 删除商品
export const delShopList = (id) => {
	return request.delete(`/api/v1/admin/shopinfo/del/${id}`)
}
